package net.jlibrary.group.service;

import java.util.List;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;

import net.jlibrary.common.core.service.BaseManager;
import net.jlibrary.common.project.domain.Group;
import net.jlibrary.group.domain.Area;

@Service
@Transactional(propagation = Propagation.REQUIRED, readOnly = false)
public class MerchantManager extends BaseManager implements IMerchantManager {

	@Override
	public List<Group> listsGroup() {
		List<Group> ls = dao.baseLists(new Group(), false);
		return ls;
	}

	@Override
	public List<Area> listAreas() {
		List<Area> areas = dao.baseLists(new Area(), false);
		return areas;
	}
}
